package org.bozo.im.common.types;

import android.os.Parcel;
import android.os.Parcelable;

public enum Presence implements Parcelable {

	ONLINE(1),
	BUSY(2),
	AWAY(3),
	OFFLINE(4);

	private int mPriority;
	
	private Presence(int pPriority) {
		mPriority = pPriority;
	}
	
	public int getPriority() {
		return mPriority;
	}
	
	public int describeContents() {
		return 0;
	}

	public void writeToParcel(Parcel pParcel, int pI) {
		pParcel.writeString(this.name());
	}

	public static final Parcelable.Creator<Presence> CREATOR = new Creator<Presence>() {

		public Presence[] newArray(int pI) {
			return new Presence[pI];
		}

		public Presence createFromParcel(Parcel pParcel) {
			return Presence.valueOf(pParcel.readString());
		}
	};
}
